package com.kgcx.coupon.mapper;

import org.apache.ibatis.annotations.Param;
import com.kgcx.coupon.domain.UserRelation;

public interface UserRelationMapper {

    int insert(UserRelation userRelation);

    UserRelation selectByPrimaryKey(@Param("kid") Long kid);
    
    /**
     * 根据新用户获取到老用户ID
     * @param coverUserId
     * @return
     */
    UserRelation selectByCoverUserId(@Param("coverUserId") Long coverUserId);

}
